package edu.scau.pos215.domain;

import edu.scau.pos215.core.domain.BaseEntity;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class Category extends BaseEntity {
    private Long categoryId;
    private String categoryName;

    public Category(){}

    public Category(Long categoryId, String categoryName) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return "Category{"+"categoryId="+categoryId+"，categoryName="+categoryName+'\''+'}';
    }
}
